package com.oms.util;

import javax.servlet.http.HttpServletRequest;
import com.oms.core.model.Query;

/**
 * 封装request查询参数
 * @date Oct 31, 2012 11:17:54 PM
 */

public class QueryUtil {
	
	public static Query toQuery(HttpServletRequest request) {
		Query query = new Query();
		// 商家名称
		query.setQShopName(DataDeal.clearNull(request.getParameter("qShopName")));
		// 联系人
		query.setQLinkMan(DataDeal.clearNull(request.getParameter("qLinkMan")));
		return query;
	}
}